import 'package:fish_redux/fish_redux.dart';
import 'package:flutter/material.dart';

class SearchState implements Cloneable<SearchState> {
  TextEditingController queryController;

  SearchState({
    this.queryController,
  });

  @override
  SearchState clone() {
    return SearchState(
      queryController: this.queryController,
    );
  }
}

SearchState initState(Map<String, dynamic> args) {
  return SearchState(
    queryController: TextEditingController(
      text: args != null ? args['query'] ?? '' : '',
    ),
  );
}
